﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RestApp.BusinessLogic.BusinessModels
{
    public class WorkTimeReport
    {
        public int IdUser { get; set; }
        public string Name { get; set; }
        public string LastName { get; set; }
        public string MiddleName { get; set; }
        public TimeSpan AmountFactWorkHours { get; set; }
        public TimeSpan AmountGraphicWorkHours { get; set; }
        public decimal AmountFactPay { get; set; }
        public decimal AmountMustBePay { get; set; }
        public IEnumerable<WorkTimeItem> WorkTimeItems { get; set; }

        public DateTime StartPeriod { get; set; }

        public DateTime EndPeriod { get; set; }

        public string FullName 
        { 
            get
            {
                return string.Format("{0} {1} {2}", LastName, Name, MiddleName);
            }
        }
    }
}
